package com.base.common;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.apache.log4j.Logger;

import com.base.util.SpringBeanUtil;



@SuppressWarnings("serial")
public class InitializeServlet extends HttpServlet {

	/**
	 * 日志对象
	 */
	private Logger log = Logger.getLogger(this.getClass());

	/**
	 * 初始化相关
	 */
	
	public void init() throws ServletException {
		log.info("Servlet初始化开始...");
		// 初始化spring的工具类
		SpringBeanUtil.setServletContext(this.getServletContext());
		log.info("Servlet初始化结束！");
	}

}
